package com.sa.module.uif.pojo;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 标签
 * 用于用户兴趣分类
 * @author huangxin
 *
 */
@MappedSuperclass
public class AbstractTag {

	private int id;
	private String description;	//标签内容
	
	public AbstractTag(int id, String describe) {
		super();
		this.id = id;
		this.description = describe;
	}

	public AbstractTag() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Id 
	@GeneratedValue(strategy=IDENTITY)	    
	@Column(name="ID", unique=true, nullable=false)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name="DESCRIPTION", nullable=true, length=10)
	public String getDescription() {
		return description;
	}

	public void setDescription(String describe) {
		this.description = describe;
	}

	@Override
	public String toString() {
		return "AbstractTag [id=" + id + ", describe=" + description + "]";
	}
	
	
}
